projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22b8b49
)
x86: fix number of array elements calculation in
author
Keir Fraser
<keir.fraser@citrix.com>
Fri, 26 Feb 2010 14:06:16 +0000
(14:06 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Fri, 26 Feb 2010 14:06:16 +0000
(14:06 +0000)
XEN_DOMCTL_getpageframeinfo3 handler
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/domctl.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/domctl.c
b/xen/arch/x86/domctl.c
index e74e9786f7960a718efbf8991a687aa189ae0fd2..2fc24c9fd748803c58ce52d7e61d589235bf108f 100644
(file)
--- a/
xen/arch/x86/domctl.c
+++ b/
xen/arch/x86/domctl.c
@@
-194,7
+194,8
@@
long arch_do_domctl(
for ( n = ret = 0; n < num; )
{
- unsigned int k = min_t(unsigned int, num - n, PAGE_SIZE / 4);
+ unsigned int k = min_t(unsigned int, num - n,
+ PAGE_SIZE / sizeof(*arr));
if ( copy_from_guest_offset(arr,
domctl->u.getpageframeinfo3.array,